version=1.0.0
builddate=$(shell date)

# 32位和64位检测
HARDWARE_PLATFORM := $(shell uname -i)
ifeq ($(HARDWARE_PLATFORM),x86_64)  
    version+= 64bit
    CPPFLAGS+= -DMAC64
else

endif

# 定义源代码路径 源代码的路径使用绝对路径
SRCDIR=src
CONF=conf
TARGETS=Server
INCLUDEDIR=./include

CC=g++

# 定义输出目录
OUTDIR=output

# 定义编译选项
CPPFLAGS+=-g -O3 -Wall -pipe -D_REENTRANT -DVERSION=\""$(version)"\" -DBUILD_DATE=\""$(builddate)"\"

LIBPATH=

LDFLAGS= -lpthread

INCLUDES= -I$(INCLUDEDIR)
